﻿<UserControl
    x:Class="RuneMasterWin8.Views.ScoreView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:RuneMasterWin8.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Height="158"
    Width="282">
    <UserControl.Resources>
        <Storyboard x:Name="StoryboardShow">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.4"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1.3">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <QuinticEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.4"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1.3">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <QuinticEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <LinearGradientBrush x:Name="BrushNormal" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF0080FF" Offset="0"/>
            <GradientStop Color="#FF003972" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Name="BrushHigh1" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFC696FF" Offset="0"/>
            <GradientStop Color="#FF6800FF" Offset="0.992"/>
            <GradientStop Color="#FF5D00FF" Offset="0.682"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Name="BrushHigh2" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFB20E" Offset="0.009"/>
            <GradientStop Color="#FFEA5008" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Name="BrushHigh3" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFF40D" Offset="1"/>
            <GradientStop Color="#FFB90000"/>
            <GradientStop Color="#FFE76D08" Offset="0.699"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Name="BrushHigh4" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF973924" Offset="0.009"/>
            <GradientStop Color="#FFFD0202" Offset="1"/>
        </LinearGradientBrush>
        <Storyboard x:Name="StoryboardResume">
        	<DoubleAnimation Duration="0" To="0.4" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True"/>
        	<DoubleAnimation Duration="0" To="0.4" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True"/>
        </Storyboard>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5">
        <Grid.RenderTransform>
            <CompositeTransform/>
        </Grid.RenderTransform>
        <Image x:Name="imgDuplex" Margin="0" Source="ms-appx:///Images/Tip/eliminate_triple.png" Stretch="None" VerticalAlignment="Top"/>
        <TextBlock x:Name="txtScore_Copy" Margin="-5,50,0,0" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtScore}" VerticalAlignment="Top" FontSize="48" TextAlignment="Center" Foreground="White" RenderTransformOrigin="0.5,0.5">
        	<TextBlock.RenderTransform>
        		<CompositeTransform TranslateX="2" TranslateY="2"/>
        	</TextBlock.RenderTransform>
        </TextBlock>
        <TextBlock x:Name="txtScore" Margin="-5,50,0,0" TextWrapping="Wrap" Text="+600" VerticalAlignment="Top" FontSize="48" TextAlignment="Center" Foreground="Black"/>
        <Image x:Name="imgCombo" Source="ms-appx:///Images/Tip/combo.png" Stretch="None" Margin="60,120,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
        <TextBlock x:Name="txtCombo_Copy" Margin="194,0,0,-13" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtCombo}" VerticalAlignment="Bottom" FontSize="53.333" HorizontalAlignment="Left" Visibility="{Binding Visibility, ElementName=imgCombo}" Foreground="White" RenderTransformOrigin="0.5,0.5" FontWeight="Bold">
        	<TextBlock.RenderTransform>
        		<CompositeTransform TranslateX="2" TranslateY="2"/>
        	</TextBlock.RenderTransform>
        </TextBlock>
        <TextBlock x:Name="txtCombo" Margin="194,0,0,-13" TextWrapping="Wrap" Text="7" VerticalAlignment="Bottom" FontSize="53.333" HorizontalAlignment="Left" Visibility="{Binding Visibility, ElementName=imgCombo}" FontWeight="Bold">
            <TextBlock.Foreground>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFAA9400" Offset="0"/>
                    <GradientStop Color="#FFFF1004" Offset="1"/>
                </LinearGradientBrush>
            </TextBlock.Foreground>
        </TextBlock>
        <Path Data="M55,104 L220,104" Fill="#FFF4F4F5" HorizontalAlignment="Center" Height="2" Margin="0,110,0,0" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top" Width="176.667" StrokeThickness="2" Visibility="{Binding Visibility, ElementName=imgCombo}">
            <Path.Stroke>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0"/>
                    <GradientStop Color="White" Offset="1"/>
                </LinearGradientBrush>
            </Path.Stroke>
        </Path>
    </Grid>
</UserControl>
